/*
 * MainFrame.java
 *
 * Created on 27 de Abril de 2008, 11:22
 */

package GUI;

import Remote.MainClient;
import java.awt.event.KeyEvent;
import java.io.IOException;
import java.util.Vector;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JOptionPane;

/**
 *
 * @author  Ronaldo Filho
 */
public class MainFrame extends javax.swing.JFrame implements Util.Observer{
    
    private LoginDialog loginDialog;
    protected MainClient client;
    
    /** Creates new form MainFrame */
    public MainFrame() {
        try {
            initComponents();
            this.client = new MainClient("127.0.0.1", this);

            Thread t = new Thread(this.client);
            t.start();
            
            this.setVisible(false);
            
            this.loginDialog = new LoginDialog(this, true, this.client);
            this.loginDialog.setVisible(true);
            
            //Vector<Object> test = new Vector<Object>();
            //Vector<Object> primeiro = new Vector<Object>();
            //Vector<Object> segundo = new Vector<Object>();
            
            //primeiro.addElement("primeiro");
            //primeiro.addElement("tua.mae.eh@bada.no.cu");
            //primeiro.addElement("puto");
            
            //segundo.addElement("segundo");
            //segundo.addElement("seu.puto@bado.de.merda");
            //segundo.addElement("tua mãe");
            
            //test.addElement(primeiro);
            //test.addElement(segundo);
            
            //this.jogadores_list.setModel(new Model(test));
            
        } catch (IOException ex) {
            Logger.getLogger(MainFrame.class.getName()).log(Level.SEVERE, null, ex);
        }
    }

     /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jTabbedPane1 = new javax.swing.JTabbedPane();
        jPanel1 = new javax.swing.JPanel();
        jLabel7 = new javax.swing.JLabel();
        jogador_nome = new javax.swing.JTextField();
        jLabel8 = new javax.swing.JLabel();
        jogador_email = new javax.swing.JTextField();
        jLabel9 = new javax.swing.JLabel();
        jogador_nomeUsuario = new javax.swing.JTextField();
        jLabel10 = new javax.swing.JLabel();
        jScrollPane4 = new javax.swing.JScrollPane();
        jogadores_list = new javax.swing.JList();
        jogadores_adicionar = new javax.swing.JButton();
        jogadores_buscar = new javax.swing.JButton();
        jogadores_remover = new javax.swing.JButton();
        jogadores_atualizar = new javax.swing.JButton();
        jPanel2 = new javax.swing.JPanel();
        personagens_adicionar = new javax.swing.JButton();
        personagens_atualizar = new javax.swing.JButton();
        personagens_remover = new javax.swing.JButton();
        personagens_buscar = new javax.swing.JButton();
        jLabel1 = new javax.swing.JLabel();
        personagem_nome = new javax.swing.JTextField();
        personagem_peso = new javax.swing.JTextField();
        personagem_tamanhoSlot = new javax.swing.JTextField();
        personagem_cargaMaxima = new javax.swing.JTextField();
        personagem_preco = new javax.swing.JTextField();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();
        jLabel13 = new javax.swing.JLabel();
        jLabel14 = new javax.swing.JLabel();
        personagem_religiao = new javax.swing.JTextField();
        jLabel15 = new javax.swing.JLabel();
        personagem_nacionalidade = new javax.swing.JTextField();
        jLabel16 = new javax.swing.JLabel();
        personagem_forca = new javax.swing.JTextField();
        jLabel17 = new javax.swing.JLabel();
        personagem_habilidade = new javax.swing.JTextField();
        jLabel18 = new javax.swing.JLabel();
        personagem_bonusForca = new javax.swing.JTextField();
        jLabel19 = new javax.swing.JLabel();
        personagem_bonusHabilidade = new javax.swing.JTextField();
        jLabel20 = new javax.swing.JLabel();
        personagem_bonusResistecia = new javax.swing.JTextField();
        jLabel21 = new javax.swing.JLabel();
        personagem_agua = new javax.swing.JTextField();
        jLabel22 = new javax.swing.JLabel();
        personagem_fogo = new javax.swing.JTextField();
        jLabel23 = new javax.swing.JLabel();
        personagem_ar = new javax.swing.JTextField();
        jLabel24 = new javax.swing.JLabel();
        personagem_terra = new javax.swing.JTextField();
        jLabel25 = new javax.swing.JLabel();
        personagem_luz = new javax.swing.JTextField();
        jLabel26 = new javax.swing.JLabel();
        personagem_trevas = new javax.swing.JTextField();
        jLabel27 = new javax.swing.JLabel();
        personagem_bonusProtecao = new javax.swing.JTextField();
        jLabel28 = new javax.swing.JLabel();
        personagem_resistencia = new javax.swing.JTextField();
        jLabel29 = new javax.swing.JLabel();
        personagem_protecao = new javax.swing.JTextField();
        jLabel30 = new javax.swing.JLabel();
        personagem_pdf = new javax.swing.JTextField();
        jLabel31 = new javax.swing.JLabel();
        personagem_bonusPDF = new javax.swing.JTextField();
        jScrollPane2 = new javax.swing.JScrollPane();
        personagem_entidades = new javax.swing.JList();
        jScrollPane3 = new javax.swing.JScrollPane();
        personagens_list = new javax.swing.JList();
        jLabel32 = new javax.swing.JLabel();
        jLabel33 = new javax.swing.JLabel();
        jLabel34 = new javax.swing.JLabel();
        personagem_tamanho = new javax.swing.JComboBox();
        personagem_sexo = new javax.swing.JComboBox();
        jScrollPane1 = new javax.swing.JScrollPane();
        jList3 = new javax.swing.JList();
        jLabel60 = new javax.swing.JLabel();
        personage_addFeature = new javax.swing.JTextField();
        jLabel61 = new javax.swing.JLabel();
        personagem_addEntidade = new javax.swing.JTextField();
        jPanel3 = new javax.swing.JPanel();
        equipamentos_tamanhoSlot = new javax.swing.JTextField();
        equipamentos_peso1 = new javax.swing.JTextField();
        equipamento_nome = new javax.swing.JTextField();
        equipamento_preco = new javax.swing.JTextField();
        jLabel40 = new javax.swing.JLabel();
        jLabel41 = new javax.swing.JLabel();
        jLabel42 = new javax.swing.JLabel();
        equipamento_cargaMaxima = new javax.swing.JTextField();
        jLabel43 = new javax.swing.JLabel();
        jLabel44 = new javax.swing.JLabel();
        jLabel45 = new javax.swing.JLabel();
        jButton21 = new javax.swing.JButton();
        jButton22 = new javax.swing.JButton();
        jButton23 = new javax.swing.JButton();
        jButton24 = new javax.swing.JButton();
        jLabel46 = new javax.swing.JLabel();
        jLabel47 = new javax.swing.JLabel();
        equipamento_velocidadeMax = new javax.swing.JTextField();
        jLabel48 = new javax.swing.JLabel();
        equipamento_nbEntidades = new javax.swing.JTextField();
        equipamento_protecao = new javax.swing.JTextField();
        jLabel49 = new javax.swing.JLabel();
        equipamento_bonusResistecia = new javax.swing.JTextField();
        equipamento_bonusProtecao = new javax.swing.JTextField();
        jLabel50 = new javax.swing.JLabel();
        equipamento_resistencia = new javax.swing.JTextField();
        jLabel51 = new javax.swing.JLabel();
        jLabel53 = new javax.swing.JLabel();
        jLabel52 = new javax.swing.JLabel();
        jComboBox1 = new javax.swing.JComboBox();
        jLabel54 = new javax.swing.JLabel();
        jLabel55 = new javax.swing.JLabel();
        equipamento_tipo1 = new javax.swing.JTextField();
        equipamento_tipo2 = new javax.swing.JTextField();
        jLabel58 = new javax.swing.JLabel();
        jComboBox2 = new javax.swing.JComboBox();
        jLabel59 = new javax.swing.JLabel();
        jScrollPane9 = new javax.swing.JScrollPane();
        jList2 = new javax.swing.JList();
        jComboBox3 = new javax.swing.JComboBox();
        jComboBox4 = new javax.swing.JComboBox();
        jPanel4 = new javax.swing.JPanel();
        feature_atualizar = new javax.swing.JButton();
        feature_adicionar = new javax.swing.JButton();
        feature_remover = new javax.swing.JButton();
        feature_buscar = new javax.swing.JButton();
        jLabel36 = new javax.swing.JLabel();
        feature_nome = new javax.swing.JTextField();
        jLabel37 = new javax.swing.JLabel();
        feature_custo = new javax.swing.JTextField();
        jLabel38 = new javax.swing.JLabel();
        jScrollPane7 = new javax.swing.JScrollPane();
        feature_descricao = new javax.swing.JTextArea();
        jScrollPane8 = new javax.swing.JScrollPane();
        feature_list = new javax.swing.JList();
        jLabel39 = new javax.swing.JLabel();
        jPanel5 = new javax.swing.JPanel();
        jLabel11 = new javax.swing.JLabel();
        terreno_nome = new javax.swing.JTextField();
        jLabel12 = new javax.swing.JLabel();
        jScrollPane5 = new javax.swing.JScrollPane();
        terreno_descricao = new javax.swing.JTextArea();
        jLabel35 = new javax.swing.JLabel();
        jScrollPane6 = new javax.swing.JScrollPane();
        terrenos = new javax.swing.JList();
        jButton13 = new javax.swing.JButton();
        jButton14 = new javax.swing.JButton();
        jButton15 = new javax.swing.JButton();
        jButton16 = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        jLabel7.setText("Nome");

        jLabel8.setText("E-mail");

        jLabel9.setText("Nome de Usuário");

        jLabel10.setText("Jogadores");

        jogadores_list.setModel(new javax.swing.AbstractListModel() {
            String[] strings = { "", "" };
            public int getSize() { return strings.length; }
            public Object getElementAt(int i) { return strings[i]; }
        });
        jogadores_list.addListSelectionListener(new javax.swing.event.ListSelectionListener() {
            public void valueChanged(javax.swing.event.ListSelectionEvent evt) {
                listValueChanged(evt);
            }
        });
        jScrollPane4.setViewportView(jogadores_list);

        jogadores_adicionar.setText("Adicionar"); // NOI18N
        jogadores_adicionar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jogadores_adicionarActionPerformed(evt);
            }
        });

        jogadores_buscar.setText("Buscar"); // NOI18N
        jogadores_buscar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jogadores_buscarActionPerformed(evt);
            }
        });

        jogadores_remover.setText("Remover"); // NOI18N
        jogadores_remover.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jogadores_removerActionPerformed(evt);
            }
        });

        jogadores_atualizar.setText("Atualizar"); // NOI18N
        jogadores_atualizar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jogadores_atualizarActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel7)
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                .addComponent(jLabel8)
                                .addGap(400, 400, 400))
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                .addComponent(jLabel9)
                                .addGap(347, 347, 347))
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(jogador_nomeUsuario, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 250, Short.MAX_VALUE)
                                    .addComponent(jogador_email, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 250, Short.MAX_VALUE)
                                    .addComponent(jogador_nome, javax.swing.GroupLayout.DEFAULT_SIZE, 250, Short.MAX_VALUE))
                                .addGap(178, 178, 178)))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel10)
                            .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 299, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addContainerGap())
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addComponent(jogadores_adicionar, javax.swing.GroupLayout.PREFERRED_SIZE, 148, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(48, 48, 48)
                        .addComponent(jogadores_atualizar, javax.swing.GroupLayout.PREFERRED_SIZE, 134, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(48, 48, 48)
                        .addComponent(jogadores_remover, javax.swing.GroupLayout.PREFERRED_SIZE, 144, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 49, Short.MAX_VALUE)
                        .addComponent(jogadores_buscar, javax.swing.GroupLayout.PREFERRED_SIZE, 145, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(21, 21, 21))))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGap(25, 25, 25)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel7)
                    .addComponent(jLabel10))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addComponent(jogador_nome, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(23, 23, 23)
                        .addComponent(jLabel8)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jogador_email, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(jLabel9)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jogador_nomeUsuario, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 416, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 55, Short.MAX_VALUE)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jogadores_adicionar)
                    .addComponent(jogadores_remover)
                    .addComponent(jogadores_buscar)
                    .addComponent(jogadores_atualizar))
                .addContainerGap())
        );

        jTabbedPane1.addTab("Jogadores", jPanel1);

        personagens_adicionar.setText("Adicionar"); // NOI18N
        personagens_adicionar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                personagens_adicionarActionPerformed(evt);
            }
        });

        personagens_atualizar.setText("Atualizar"); // NOI18N
        personagens_atualizar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                personagens_atualizarActionPerformed(evt);
            }
        });

        personagens_remover.setText("Remover"); // NOI18N
        personagens_remover.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                personagens_removerActionPerformed(evt);
            }
        });

        personagens_buscar.setText("Buscar"); // NOI18N
        personagens_buscar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                personagens_buscarActionPerformed(evt);
            }
        });

        jLabel1.setText("Nome"); // NOI18N

        jLabel2.setText("Tamanho"); // NOI18N

        jLabel3.setText("Peso"); // NOI18N

        jLabel4.setText("Tamanho em Slots"); // NOI18N

        jLabel5.setText("Carga Máxima"); // NOI18N

        jLabel6.setText("Preço"); // NOI18N

        jLabel13.setText("Sexo"); // NOI18N

        jLabel14.setText("Religião"); // NOI18N

        jLabel15.setText("Nacionalidade"); // NOI18N

        jLabel16.setText("Força"); // NOI18N

        jLabel17.setText("Habilidade"); // NOI18N

        jLabel18.setText("Resistência"); // NOI18N

        jLabel19.setText("Bonus Habilidade"); // NOI18N

        jLabel20.setText("Bonus Resistência"); // NOI18N

        jLabel21.setText("Água"); // NOI18N

        jLabel22.setText("Fogo"); // NOI18N

        jLabel23.setText("Ar"); // NOI18N

        jLabel24.setText("Terra"); // NOI18N

        jLabel25.setText("Luz"); // NOI18N

        jLabel26.setText("Trevas"); // NOI18N

        jLabel27.setText("Bonus Proteção"); // NOI18N

        jLabel28.setText("Proteção"); // NOI18N

        jLabel29.setText("Ataque à Distância"); // NOI18N

        jLabel30.setText("Bonus Força"); // NOI18N

        jLabel31.setText("Bonus Ataque à Distância"); // NOI18N

        personagem_entidades.setModel(new Model(new Vector<Object>()));
        personagem_entidades.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);
        personagem_entidades.setValueIsAdjusting(true);
        personagem_entidades.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                personagem_entidadesKeyPressed(evt);
            }
        });
        jScrollPane2.setViewportView(personagem_entidades);

        personagens_list.setModel(new javax.swing.AbstractListModel() {
            String[] strings = { "", "" };
            public int getSize() { return strings.length; }
            public Object getElementAt(int i) { return strings[i]; }
        });
        personagens_list.addListSelectionListener(new javax.swing.event.ListSelectionListener() {
            public void valueChanged(javax.swing.event.ListSelectionEvent evt) {
                personagens_listValueChanged(evt);
            }
        });
        jScrollPane3.setViewportView(personagens_list);

        jLabel32.setText("Features");

        jLabel33.setText("Personagens");

        jLabel34.setText("Entidades");

        personagem_tamanho.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Diminuto", "Miudo", "Pequeno", "Médio", "Grande", "Enorme", "Colossal" }));
        personagem_tamanho.setSelectedItem(new String());

        personagem_sexo.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "M", "F" }));
        personagem_sexo.setSelectedItem(new String());

        jList3.setModel(new Model(new Vector<Object>()));
        jList3.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);
        jList3.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                jList3KeyPressed(evt);
            }
        });
        jScrollPane1.setViewportView(jList3);

        jLabel60.setText("Adicionar Feature");

        personage_addFeature.setText(" ");
        personage_addFeature.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                personage_addFeatureKeyPressed(evt);
            }
        });

        jLabel61.setText("Adicionar Entidade");

        personagem_addEntidade.setText(" ");
        personagem_addEntidade.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                personagem_addEntidadeKeyPressed(evt);
            }
        });

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel2Layout.createSequentialGroup()
                                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jLabel1)
                                    .addComponent(jLabel2)
                                    .addComponent(jLabel3)
                                    .addComponent(jLabel13)
                                    .addComponent(jLabel14)
                                    .addComponent(jLabel15)
                                    .addComponent(jLabel6)
                                    .addComponent(personagem_nome, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jLabel4)
                                    .addComponent(personagem_tamanho, 0, 129, Short.MAX_VALUE)
                                    .addComponent(personagem_peso, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                        .addComponent(personagem_preco, javax.swing.GroupLayout.Alignment.LEADING)
                                        .addComponent(jLabel5, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                                    .addComponent(personagem_religiao, javax.swing.GroupLayout.DEFAULT_SIZE, 129, Short.MAX_VALUE)
                                    .addComponent(personagem_nacionalidade, javax.swing.GroupLayout.DEFAULT_SIZE, 129, Short.MAX_VALUE)
                                    .addComponent(personagem_tamanhoSlot, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(personagem_cargaMaxima, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addGap(41, 41, 41))
                            .addGroup(jPanel2Layout.createSequentialGroup()
                                .addComponent(personagem_sexo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)))
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel2Layout.createSequentialGroup()
                                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jLabel17)
                                    .addComponent(jLabel20)
                                    .addComponent(jLabel18)
                                    .addComponent(jLabel29)
                                    .addComponent(jLabel30)
                                    .addComponent(jLabel19)
                                    .addComponent(jLabel31)
                                    .addComponent(personagem_bonusPDF, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(personagem_bonusProtecao, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(personagem_bonusResistecia, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(personagem_bonusHabilidade, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(personagem_bonusForca, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jLabel28)
                                    .addComponent(personagem_pdf, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(personagem_protecao, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(personagem_resistencia, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(personagem_habilidade, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                        .addComponent(personagem_forca, javax.swing.GroupLayout.Alignment.LEADING)
                                        .addComponent(jLabel16, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                                .addGap(18, 18, 18)
                                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(jLabel26)
                                    .addComponent(jLabel25)
                                    .addComponent(jLabel24)
                                    .addComponent(jLabel23)
                                    .addComponent(jLabel22)
                                    .addComponent(jLabel21)
                                    .addComponent(personagem_trevas, javax.swing.GroupLayout.DEFAULT_SIZE, 42, Short.MAX_VALUE)
                                    .addComponent(personagem_luz)
                                    .addComponent(personagem_terra)
                                    .addComponent(personagem_ar)
                                    .addComponent(personagem_fogo)
                                    .addComponent(personagem_agua)))
                            .addComponent(jLabel27))
                        .addGap(26, 26, 26))
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addComponent(personagens_adicionar, javax.swing.GroupLayout.DEFAULT_SIZE, 144, Short.MAX_VALUE)
                        .addGap(64, 64, 64)
                        .addComponent(personagens_atualizar, javax.swing.GroupLayout.PREFERRED_SIZE, 128, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(11, 11, 11)))
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(personagens_remover, javax.swing.GroupLayout.PREFERRED_SIZE, 144, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(213, 213, 213))
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 158, Short.MAX_VALUE)
                            .addComponent(jLabel32)
                            .addComponent(jLabel60)
                            .addComponent(personage_addFeature, javax.swing.GroupLayout.DEFAULT_SIZE, 158, Short.MAX_VALUE)
                            .addComponent(jLabel34)
                            .addComponent(jLabel61)
                            .addComponent(personagem_addEntidade, javax.swing.GroupLayout.DEFAULT_SIZE, 158, Short.MAX_VALUE)
                            .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 158, Short.MAX_VALUE))
                        .addGap(9, 9, 9)
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel33)
                            .addGroup(jPanel2Layout.createSequentialGroup()
                                .addGap(31, 31, 31)
                                .addComponent(personagens_buscar, javax.swing.GroupLayout.PREFERRED_SIZE, 124, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addComponent(jScrollPane3, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 192, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)))
                .addContainerGap())
        );

        jPanel2Layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {personagens_adicionar, personagens_atualizar, personagens_buscar, personagens_remover});

        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel1)
                            .addComponent(jLabel21)
                            .addComponent(jLabel60))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(personagem_nome, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(personagem_agua, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addComponent(personage_addFeature, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel2Layout.createSequentialGroup()
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jLabel32)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 204, Short.MAX_VALUE)
                                .addGap(52, 52, 52)
                                .addComponent(jLabel34)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 114, Short.MAX_VALUE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED))
                            .addGroup(jPanel2Layout.createSequentialGroup()
                                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(jPanel2Layout.createSequentialGroup()
                                        .addComponent(jLabel2)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(personagem_tamanho, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jLabel3)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(personagem_peso, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jLabel4)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(personagem_tamanhoSlot, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jLabel5)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(personagem_cargaMaxima, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jLabel6)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(personagem_preco, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jLabel13)
                                        .addGap(6, 6, 6)
                                        .addComponent(personagem_sexo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jLabel14)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(personagem_religiao, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jLabel15))
                                    .addGroup(jPanel2Layout.createSequentialGroup()
                                        .addComponent(jLabel22)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(personagem_fogo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jLabel23)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(personagem_ar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jLabel24)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(personagem_terra, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jLabel25)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(personagem_luz, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jLabel26)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(personagem_trevas, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(personagem_nacionalidade, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED))
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addComponent(jLabel33)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jScrollPane3, javax.swing.GroupLayout.DEFAULT_SIZE, 436, Short.MAX_VALUE))
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addComponent(jLabel16)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(personagem_forca, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel17)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(personagem_habilidade, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel18)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(personagem_resistencia, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel28)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(personagem_protecao, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel29)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(personagem_pdf, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel30)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(personagem_bonusForca, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel19)
                            .addComponent(jLabel61))
                        .addGap(6, 6, 6)
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(personagem_addEntidade, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(personagem_bonusHabilidade, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel20)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(personagem_bonusResistecia, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel27, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(personagem_bonusProtecao, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel31)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(personagem_bonusPDF, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGap(49, 49, 49)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(personagens_adicionar)
                    .addComponent(personagens_atualizar)
                    .addComponent(personagens_remover)
                    .addComponent(personagens_buscar))
                .addContainerGap())
        );

        jPanel2Layout.linkSize(javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] {personagens_adicionar, personagens_atualizar, personagens_buscar, personagens_remover});

        jPanel2Layout.linkSize(javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] {personagem_agua, personagem_ar, personagem_bonusForca, personagem_bonusHabilidade, personagem_bonusPDF, personagem_bonusProtecao, personagem_bonusResistecia, personagem_cargaMaxima, personagem_fogo, personagem_forca, personagem_habilidade, personagem_luz, personagem_nacionalidade, personagem_nome, personagem_pdf, personagem_peso, personagem_preco, personagem_protecao, personagem_religiao, personagem_resistencia, personagem_tamanhoSlot, personagem_terra, personagem_trevas});

        jTabbedPane1.addTab("Personagens", jPanel2);

        jLabel40.setText("Peso"); // NOI18N

        jLabel41.setText("Tamanho"); // NOI18N

        jLabel42.setText("Preço"); // NOI18N

        jLabel43.setText("Nome"); // NOI18N

        jLabel44.setText("Tamanho em Slots"); // NOI18N

        jLabel45.setText("Carga Máxima"); // NOI18N

        jButton21.setText("Atualizar"); // NOI18N
        jButton21.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton21ActionPerformed(evt);
            }
        });

        jButton22.setText("Adicionar"); // NOI18N
        jButton22.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton22ActionPerformed(evt);
            }
        });

        jButton23.setText("Remover"); // NOI18N
        jButton23.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton23ActionPerformed(evt);
            }
        });

        jButton24.setText("Buscar"); // NOI18N
        jButton24.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton24ActionPerformed(evt);
            }
        });

        jLabel46.setText("Qualidade");

        jLabel47.setText("Velocidade Máxima (Estrutura)");

        jLabel48.setText("Número de Entidades (Estrutura)");

        jLabel49.setText("Proteção"); // NOI18N

        jLabel50.setText("Bonus Resistência"); // NOI18N

        jLabel51.setText("Bonus Proteção"); // NOI18N

        jLabel53.setText("Resistência"); // NOI18N

        jLabel52.setText("Vestivel");

        jComboBox1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Sim", "Não" }));

        jLabel54.setText("Tipo 1");

        jLabel55.setText("Tipo 2");

        equipamento_tipo1.setText("  ");

        jLabel58.setText("Classificação");

        jComboBox2.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Simples", "Comum", "Exótico" }));

        jLabel59.setText("Equipamentos");

        jList2.setModel(new javax.swing.AbstractListModel() {
            String[] strings = { "", "", "" };
            public int getSize() { return strings.length; }
            public Object getElementAt(int i) { return strings[i]; }
        });
        jList2.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);
        jList2.addListSelectionListener(new javax.swing.event.ListSelectionListener() {
            public void valueChanged(javax.swing.event.ListSelectionEvent evt) {
                jList2ValueChanged(evt);
            }
        });
        jScrollPane9.setViewportView(jList2);

        jComboBox3.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Diminuto", "Miudo", "Pequeno", "Médio", "Grande", "Enorme", "Colossal" }));

        jComboBox4.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Pobre", "Comum", "Obra-Prima" }));

        javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jButton22, javax.swing.GroupLayout.PREFERRED_SIZE, 175, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel58)
                    .addComponent(jLabel52)
                    .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                        .addComponent(jComboBox2, javax.swing.GroupLayout.Alignment.LEADING, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jComboBox4, javax.swing.GroupLayout.Alignment.LEADING, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jComboBox3, javax.swing.GroupLayout.Alignment.LEADING, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jLabel43, javax.swing.GroupLayout.Alignment.LEADING)
                        .addComponent(jLabel41, javax.swing.GroupLayout.Alignment.LEADING)
                        .addComponent(jLabel40, javax.swing.GroupLayout.Alignment.LEADING)
                        .addComponent(jLabel44, javax.swing.GroupLayout.Alignment.LEADING)
                        .addComponent(equipamentos_tamanhoSlot, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jLabel45, javax.swing.GroupLayout.Alignment.LEADING)
                        .addComponent(jLabel42, javax.swing.GroupLayout.Alignment.LEADING)
                        .addComponent(equipamento_nome, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 153, Short.MAX_VALUE)
                        .addComponent(jLabel46, javax.swing.GroupLayout.Alignment.LEADING)
                        .addComponent(equipamento_preco, javax.swing.GroupLayout.Alignment.LEADING)
                        .addComponent(equipamento_cargaMaxima, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 43, Short.MAX_VALUE)
                        .addComponent(equipamentos_peso1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 48, Short.MAX_VALUE)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel3Layout.createSequentialGroup()
                        .addComponent(jButton21, javax.swing.GroupLayout.PREFERRED_SIZE, 128, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(52, 52, 52)
                        .addComponent(jButton23, javax.swing.GroupLayout.PREFERRED_SIZE, 126, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(34, 34, 34)
                        .addComponent(jButton24, javax.swing.GroupLayout.PREFERRED_SIZE, 164, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel3Layout.createSequentialGroup()
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(jLabel47)
                            .addComponent(jLabel48, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jLabel53)
                            .addComponent(equipamento_nbEntidades, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel49)
                            .addComponent(equipamento_velocidadeMax, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(equipamento_resistencia, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel51)
                            .addComponent(jLabel50)
                            .addComponent(equipamento_bonusResistecia, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(equipamento_protecao, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(equipamento_bonusProtecao, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel54)
                            .addComponent(jLabel55)
                            .addComponent(equipamento_tipo1)
                            .addComponent(equipamento_tipo2))
                        .addGap(49, 49, 49)
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jScrollPane9, javax.swing.GroupLayout.PREFERRED_SIZE, 297, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel59))))
                .addContainerGap())
        );

        jPanel3Layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {equipamento_cargaMaxima, equipamento_preco});

        jPanel3Layout.setVerticalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel3Layout.createSequentialGroup()
                        .addComponent(jLabel43)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(equipamento_nome, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel41)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jComboBox3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel40)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(equipamentos_peso1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel44)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(equipamentos_tamanhoSlot, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel45)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(equipamento_cargaMaxima, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel42)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(equipamento_preco, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel46)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jComboBox4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel58)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jComboBox2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel52)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel3Layout.createSequentialGroup()
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel47)
                            .addComponent(jLabel59))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel3Layout.createSequentialGroup()
                                .addComponent(equipamento_velocidadeMax, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jLabel48)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(equipamento_nbEntidades, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jLabel53)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(equipamento_resistencia, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jLabel49)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(equipamento_protecao, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jLabel50)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(equipamento_bonusResistecia, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jLabel51, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(equipamento_bonusProtecao, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jLabel54)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(equipamento_tipo1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jLabel55)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(equipamento_tipo2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addComponent(jScrollPane9, javax.swing.GroupLayout.PREFERRED_SIZE, 432, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addGap(53, 53, 53)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButton24)
                    .addComponent(jButton23)
                    .addComponent(jButton21)
                    .addComponent(jButton22))
                .addContainerGap())
        );

        jTabbedPane1.addTab("Equipamentos", jPanel3);

        feature_atualizar.setText("Atualizar"); // NOI18N
        feature_atualizar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                feature_atualizarActionPerformed(evt);
            }
        });

        feature_adicionar.setText("Adicionar"); // NOI18N
        feature_adicionar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                feature_adicionarActionPerformed(evt);
            }
        });

        feature_remover.setText("Remover"); // NOI18N
        feature_remover.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                feature_removerActionPerformed(evt);
            }
        });

        feature_buscar.setText("Buscar"); // NOI18N
        feature_buscar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                feature_buscarActionPerformed(evt);
            }
        });

        jLabel36.setText("Nome");

        jLabel37.setText("Custo");

        jLabel38.setText("Descrição");

        feature_descricao.setColumns(20);
        feature_descricao.setRows(5);
        jScrollPane7.setViewportView(feature_descricao);

        feature_list.setModel(new javax.swing.AbstractListModel() {
            String[] strings = { "", "" };
            public int getSize() { return strings.length; }
            public Object getElementAt(int i) { return strings[i]; }
        });
        feature_list.addListSelectionListener(new javax.swing.event.ListSelectionListener() {
            public void valueChanged(javax.swing.event.ListSelectionEvent evt) {
                feature_listValueChanged(evt);
            }
        });
        jScrollPane8.setViewportView(feature_list);

        jLabel39.setText("Features");

        javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
        jPanel4.setLayout(jPanel4Layout);
        jPanel4Layout.setHorizontalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createSequentialGroup()
                        .addComponent(feature_adicionar, javax.swing.GroupLayout.PREFERRED_SIZE, 175, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 48, Short.MAX_VALUE)
                        .addComponent(feature_atualizar, javax.swing.GroupLayout.PREFERRED_SIZE, 128, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel4Layout.createSequentialGroup()
                        .addComponent(jLabel36)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 324, Short.MAX_VALUE))
                    .addGroup(jPanel4Layout.createSequentialGroup()
                        .addComponent(jLabel37)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 323, Short.MAX_VALUE))
                    .addGroup(jPanel4Layout.createSequentialGroup()
                        .addComponent(feature_custo, javax.swing.GroupLayout.PREFERRED_SIZE, 49, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 302, Short.MAX_VALUE))
                    .addGroup(jPanel4Layout.createSequentialGroup()
                        .addComponent(jLabel38)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 305, Short.MAX_VALUE))
                    .addGroup(jPanel4Layout.createSequentialGroup()
                        .addComponent(feature_nome, javax.swing.GroupLayout.PREFERRED_SIZE, 220, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 131, Short.MAX_VALUE))
                    .addGroup(jPanel4Layout.createSequentialGroup()
                        .addComponent(jScrollPane7, javax.swing.GroupLayout.PREFERRED_SIZE, 289, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)))
                .addGap(52, 52, 52)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(jPanel4Layout.createSequentialGroup()
                        .addComponent(feature_remover, javax.swing.GroupLayout.PREFERRED_SIZE, 126, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(34, 34, 34)
                        .addComponent(feature_buscar, javax.swing.GroupLayout.PREFERRED_SIZE, 164, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addComponent(jLabel39)
                        .addComponent(jScrollPane8, javax.swing.GroupLayout.PREFERRED_SIZE, 306, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap())
        );
        jPanel4Layout.setVerticalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel36)
                    .addComponent(jLabel39))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel4Layout.createSequentialGroup()
                        .addComponent(feature_nome, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jLabel37)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(feature_custo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jLabel38)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jScrollPane7, javax.swing.GroupLayout.DEFAULT_SIZE, 346, Short.MAX_VALUE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 37, Short.MAX_VALUE))
                    .addGroup(jPanel4Layout.createSequentialGroup()
                        .addComponent(jScrollPane8, javax.swing.GroupLayout.PREFERRED_SIZE, 448, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)))
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(feature_buscar)
                    .addComponent(feature_remover)
                    .addComponent(feature_atualizar)
                    .addComponent(feature_adicionar))
                .addContainerGap())
        );

        jTabbedPane1.addTab("Features", jPanel4);

        jLabel11.setText("Nome");

        jLabel12.setText("Descrição");

        terreno_descricao.setColumns(20);
        terreno_descricao.setRows(5);
        jScrollPane5.setViewportView(terreno_descricao);

        jLabel35.setText("Terrenos");

        terrenos.setModel(new javax.swing.AbstractListModel() {
            String[] strings = { "", "" };
            public int getSize() { return strings.length; }
            public Object getElementAt(int i) { return strings[i]; }
        });
        terrenos.addListSelectionListener(new javax.swing.event.ListSelectionListener() {
            public void valueChanged(javax.swing.event.ListSelectionEvent evt) {
                terrenosValueChanged(evt);
            }
        });
        jScrollPane6.setViewportView(terrenos);

        jButton13.setText("Adicionar"); // NOI18N
        jButton13.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton13ActionPerformed(evt);
            }
        });

        jButton14.setText("Atualizar"); // NOI18N
        jButton14.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton14ActionPerformed(evt);
            }
        });

        jButton15.setText("Remover"); // NOI18N
        jButton15.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton15ActionPerformed(evt);
            }
        });

        jButton16.setText("Buscar"); // NOI18N
        jButton16.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton16ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);
        jPanel5.setLayout(jPanel5Layout);
        jPanel5Layout.setHorizontalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel5Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel5Layout.createSequentialGroup()
                        .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(jLabel11)
                            .addComponent(jLabel12)
                            .addComponent(jScrollPane5, javax.swing.GroupLayout.DEFAULT_SIZE, 263, Short.MAX_VALUE)
                            .addComponent(terreno_nome))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 173, Short.MAX_VALUE)
                        .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel35)
                            .addComponent(jScrollPane6, javax.swing.GroupLayout.PREFERRED_SIZE, 270, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addContainerGap(31, Short.MAX_VALUE))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel5Layout.createSequentialGroup()
                        .addComponent(jButton13, javax.swing.GroupLayout.PREFERRED_SIZE, 175, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(44, 44, 44)
                        .addComponent(jButton14, javax.swing.GroupLayout.PREFERRED_SIZE, 128, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 50, Short.MAX_VALUE)
                        .addComponent(jButton15, javax.swing.GroupLayout.PREFERRED_SIZE, 126, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(40, 40, 40)
                        .addComponent(jButton16, javax.swing.GroupLayout.PREFERRED_SIZE, 164, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addContainerGap())))
        );
        jPanel5Layout.setVerticalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel5Layout.createSequentialGroup()
                .addGap(21, 21, 21)
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel11)
                    .addComponent(jLabel35))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addGroup(jPanel5Layout.createSequentialGroup()
                        .addComponent(terreno_nome, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(jLabel12)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jScrollPane5, javax.swing.GroupLayout.PREFERRED_SIZE, 369, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(jScrollPane6))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 43, Short.MAX_VALUE)
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButton16)
                    .addComponent(jButton13)
                    .addComponent(jButton14)
                    .addComponent(jButton15))
                .addContainerGap())
        );

        jTabbedPane1.addTab("Terrenos", jPanel5);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jTabbedPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 752, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jTabbedPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 578, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jogadores_adicionarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jogadores_adicionarActionPerformed
        try {
            // TODO add your handling code here:
            String nome = this.jogador_nome.getText();
            String email = this.jogador_email.getText();
            String nomeUsuario = this.jogador_nomeUsuario.getText();
            
            if(nome.isEmpty() || email.isEmpty() || nomeUsuario.isEmpty())
            {
                JOptionPane.showMessageDialog(this, "É necessário preencher todos os campos para executar esta operação");
            }
            
            else
            {
            
            Vector<Object> info = new Vector<Object>();
            info.addElement("Insert");
            info.addElement("Jogadores");
            info.addElement(nome);
            info.addElement(email);
            info.addElement(nomeUsuario);                        

            this.client.getDBClient().acessarBD(info);
            this.cleanJogador();
            }
        } catch (IOException ex) {
            Logger.getLogger(MainFrame.class.getName()).log(Level.SEVERE, null, ex);
        }        
    }//GEN-LAST:event_jogadores_adicionarActionPerformed

    private void jogadores_atualizarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jogadores_atualizarActionPerformed
        // TODO add your handling code here:
         try {
            // TODO add your handling code here:
            String nome = this.jogador_nome.getText();
            String email = this.jogador_email.getText();
            String nomeUsuario = this.jogador_nomeUsuario.getText();
            
            if(nome.isEmpty() || email.isEmpty() || nomeUsuario.isEmpty())
            {
                JOptionPane.showMessageDialog(this, "É necessário preencher todos os campos para executar esta operação");
            }
            
            else
            {
            
            Vector<Object> info = new Vector<Object>();
            info.addElement("Update");
            info.addElement("Jogadores");
            info.addElement(nome);
            info.addElement(email);
            info.addElement(nomeUsuario);            

            this.client.getDBClient().acessarBD(info);
            this.cleanJogador();
            }
        } catch (IOException ex) {
            Logger.getLogger(MainFrame.class.getName()).log(Level.SEVERE, null, ex);
        } 
    }//GEN-LAST:event_jogadores_atualizarActionPerformed

    private void jogadores_removerActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jogadores_removerActionPerformed
        // TODO add your handling code here:
        try {
            // TODO add your handling code here:
            Vector<Object> info = new Vector<Object>();
            info.addElement("Delete");
            info.addElement("Jogadores");
            info.addElement(this.jogador_nome.getText());
            info.addElement(this.jogador_email.getText());
            info.addElement(this.jogador_nomeUsuario.getText());

            this.client.getDBClient().acessarBD(info);
            this.cleanJogador();
        } catch (IOException ex) {
            Logger.getLogger(MainFrame.class.getName()).log(Level.SEVERE, null, ex);
        }
    }//GEN-LAST:event_jogadores_removerActionPerformed

    private void jogadores_buscarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jogadores_buscarActionPerformed
        // TODO add your handling code here:
        try {
            // TODO add your handling code here:
            Vector<Object> info = new Vector<Object>();
            info.addElement("Search");
            info.addElement("Jogadores");
            info.addElement(this.jogador_nome.getText());
            info.addElement(this.jogador_email.getText());
            info.addElement(this.jogador_nomeUsuario.getText());

            this.client.getDBClient().acessarBD(info);
            this.cleanJogador();
        } catch (IOException ex) {
            Logger.getLogger(MainFrame.class.getName()).log(Level.SEVERE, null, ex);
        }
    }//GEN-LAST:event_jogadores_buscarActionPerformed

    private void jButton13ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton13ActionPerformed
        // TODO add your handling code here:
        try {
            // TODO add your handling code here:
            
            String nome = this.terreno_nome.getText();
            String descricao = this.terreno_descricao.getText();
            
            if(nome.isEmpty() || descricao.isEmpty())
            {
              JOptionPane.showMessageDialog(this, "É necessário preencher todos os campos para executar esta operação");  
            }
            
            else
            {
            
            Vector<Object> info = new Vector<Object>();
            info.addElement("Insert");
            info.addElement("Terrenos");
            info.addElement(nome);
            info.addElement(descricao);

            this.client.getDBClient().acessarBD(info);
            this.cleanTerreno();
            }
        } catch (IOException ex) {
            Logger.getLogger(MainFrame.class.getName()).log(Level.SEVERE, null, ex);
        }
    }//GEN-LAST:event_jButton13ActionPerformed

    private void jButton14ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton14ActionPerformed
        // TODO add your handling code here:
        try {
             // TODO add your handling code here:
            
            String nome = this.terreno_nome.getText();
            String descricao = this.terreno_descricao.getText();
            
            if(nome.isEmpty() || descricao.isEmpty())
            {
              JOptionPane.showMessageDialog(this, "É necessário preencher todos os campos para executar esta operação");  
            }
            
            else
            {
            
            Vector<Object> info = new Vector<Object>();
            info.addElement("Update");
            info.addElement("Terrenos");
            info.addElement(nome);
            info.addElement(descricao);

            this.client.getDBClient().acessarBD(info);
            this.cleanTerreno();
            }
        } catch (IOException ex) {
            Logger.getLogger(MainFrame.class.getName()).log(Level.SEVERE, null, ex);
        }
    }//GEN-LAST:event_jButton14ActionPerformed

    private void jButton15ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton15ActionPerformed
        // TODO add your handling code here:
        try {
            // TODO add your handling code here:
            Vector<Object> info = new Vector<Object>();
            info.addElement("Delete");
            info.addElement("Terrenos");
            info.addElement(this.terreno_nome.getText());
            info.addElement(this.terreno_descricao.getText());

            this.client.getDBClient().acessarBD(info);
            this.cleanTerreno();
        } catch (IOException ex) {
            Logger.getLogger(MainFrame.class.getName()).log(Level.SEVERE, null, ex);
        }
    }//GEN-LAST:event_jButton15ActionPerformed

    private void jButton16ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton16ActionPerformed
        // TODO add your handling code here:
        try {
            // TODO add your handling code here:
            Vector<Object> info = new Vector<Object>();
            info.addElement("Search");
            info.addElement("Terrenos");
            info.addElement(this.terreno_nome.getText());
            info.addElement(this.terreno_descricao.getText());

            this.client.getDBClient().acessarBD(info);
            this.cleanTerreno();
        } catch (IOException ex) {
            Logger.getLogger(MainFrame.class.getName()).log(Level.SEVERE, null, ex);
        }
    }//GEN-LAST:event_jButton16ActionPerformed

    private void jList3KeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jList3KeyPressed
        
        // TODO add your handling code here:
        if(evt.getKeyCode() == KeyEvent.VK_DELETE || evt.getKeyCode() == KeyEvent.VK_BACK_SPACE)
        {
            int i = this.jList3.getSelectedIndex();
            int i2 = this.jList3.getModel().getSize();
            
            Vector<Object> s = new Vector<Object>();
            
            int k = 0;
            
            for(int j = 0; j < i2; j++)
            {
                if(j != i)
                {
                    this.jList3.setSelectedIndex(j);
                    s.addElement(this.jList3.getSelectedValue().toString());
                }
            }
             this.jList3.setModel(new Model(s));
        }
    }//GEN-LAST:event_jList3KeyPressed

    private void personagem_entidadesKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_personagem_entidadesKeyPressed
        // TODO add your handling code here:
        if(evt.getKeyCode() == KeyEvent.VK_DELETE || evt.getKeyCode() == KeyEvent.VK_BACK_SPACE)
        {
            int i = this.personagem_entidades.getSelectedIndex();
            int i2 = this.personagem_entidades.getModel().getSize();
            
            Vector<Object> s = new Vector<Object>();
            
            int k = 0;
            
            for(int j = 0; j < i2; j++)
            {
                if(j != i)
                {
                    this.personagem_entidades.setSelectedIndex(j);
                    s.addElement(this.personagem_entidades.getSelectedValue().toString());
                }
            }
             this.personagem_entidades.setModel(new Model(s));
        }
    }//GEN-LAST:event_personagem_entidadesKeyPressed

    private void personage_addFeatureKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_personage_addFeatureKeyPressed
        // TODO add your handling code here:
        if(evt.getKeyCode() == KeyEvent.VK_ENTER)
        {
            int i2 = this.jList3.getModel().getSize();
            
            Vector<Object> s = new Vector<Object>();
            
            int k = 0;
            
            for(int j = 0; j < i2; j++)
            {
                this.jList3.setSelectedIndex(j);
                s.addElement(this.jList3.getSelectedValue().toString());
            }
            
            String s1 = this.personage_addFeature.getText();
            
            if(!s1.isEmpty())
            {
                s.addElement(s1);
            }
            this.jList3.setModel(new Model(s));
        }
    }//GEN-LAST:event_personage_addFeatureKeyPressed

    private void personagem_addEntidadeKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_personagem_addEntidadeKeyPressed
        // TODO add your handling code here:
        if(evt.getKeyCode() == KeyEvent.VK_ENTER)
        {
            int i2 = this.personagem_entidades.getModel().getSize();
            
            Vector<Object> s = new Vector<Object>();
            
            int k = 0;
            
            for(int j = 0; j < i2; j++)
            {
                this.personagem_entidades.setSelectedIndex(j);
                s.addElement(this.personagem_entidades.getSelectedValue().toString());
            }
            
            String s1 = this.personagem_addEntidade.getText();
            
            if(!s1.isEmpty())
            {
                s.addElement(s1);
            }
            this.personagem_entidades.setModel(new Model(s));
        }
    }//GEN-LAST:event_personagem_addEntidadeKeyPressed

    private void personagens_adicionarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_personagens_adicionarActionPerformed
        // TODO add your handling code here:
        Vector<Object> info = new Vector<Object>();
        
        String name = this.personagem_nome.getText();
        String tamanho = this.personagem_tamanho.getSelectedItem().toString();
        String peso = this.personagem_peso.getText();
        String tamanhoSlots = this.personagem_tamanhoSlot.getText();
        String carga = this.personagem_cargaMaxima.getText();
        String preco = this.personagem_preco.getText();
        String sexo = this.personagem_sexo.getSelectedItem().toString();
        String religião = this.personagem_religiao.getText();
        String nacionalidade = this.personagem_nacionalidade.getText();
        
        String forca = this.personagem_forca.getText();
        String habilidade = this.personagem_habilidade.getText();
        String resistencia = this.personagem_resistencia.getText();
        String protecao = this.personagem_protecao.getText();
        String pdf = this.personagem_pdf.getText();
        
        String bonusForca = this.personagem_bonusForca.getText();
        String bonusHabilidade = this.personagem_bonusHabilidade.getText();
        String bonusResistencia = this.personagem_bonusResistecia.getText();
        String bonusProtecao = this.personagem_bonusProtecao.getText();
        String bonusPDF = this.personagem_bonusPDF.getText();
        
        String agua = this.personagem_agua.getText();
        String fogo = this.personagem_fogo.getText();
        String ar = this.personagem_ar.getText();
        String terra = this.personagem_terra.getText();
        String luz = this.personagem_luz.getText();
        String trevas = this.personagem_trevas.getText();
        
        if(name.isEmpty() || tamanho.isEmpty() || peso.isEmpty() || tamanhoSlots.isEmpty() || carga.isEmpty() || preco.isEmpty()
           || sexo.isEmpty() || religião.isEmpty() || nacionalidade.isEmpty() || forca.isEmpty() || habilidade.isEmpty() || resistencia.isEmpty()
           || protecao.isEmpty() || pdf.isEmpty() || bonusForca.isEmpty() || bonusHabilidade.isEmpty() || bonusResistencia.isEmpty() ||
           bonusProtecao.isEmpty() || bonusPDF.isEmpty() || agua.isEmpty() || fogo.isEmpty() || ar.isEmpty() || terra.isEmpty() || luz.isEmpty() || trevas.isEmpty())
        {
           JOptionPane.showMessageDialog(this, "É necessário preencher todos os campos para executar esta operação"); 
        }
        
        else
        {
            try {
                info.addElement("Insert");
                info.addElement("Personagens");
                info.addElement(name);
                info.addElement(tamanho);
                try
                {
                    info.addElement(new Integer(peso).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                try
                {
                    info.addElement(new Integer(tamanhoSlots).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                try
                {
                    info.addElement(new Integer(carga).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                try
                {
                    info.addElement(new Integer(preco).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                info.addElement(sexo.charAt(0));
                info.addElement(religião);
                info.addElement(nacionalidade);
                try
                {
                    info.addElement(new Integer(forca).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                try
                {
                    info.addElement(new Integer(habilidade).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                try
                {
                    info.addElement(new Integer(resistencia).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                try
                {
                    info.addElement(new Integer(protecao).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                try
                {
                    info.addElement(new Integer(pdf).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                try
                {
                    info.addElement(new Integer(bonusForca).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                try
                {
                    info.addElement(new Integer(bonusHabilidade).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                try
                {
                    info.addElement(new Integer(bonusResistencia).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                try
                {
                    info.addElement(new Integer(bonusProtecao).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                try
                {
                    info.addElement(new Integer(bonusPDF).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                try
                {
                    info.addElement(new Integer(agua).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }                
                try
                {
                    info.addElement(new Integer(fogo).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                try
                {
                    info.addElement(new Integer(ar).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                try
                {
                    info.addElement(new Integer(terra).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                try
                {
                    info.addElement(new Integer(luz).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                try
                {
                    info.addElement(new Integer(trevas).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }

                info.addElement(((Model) this.jList3.getModel()).getAll());
                info.addElement(((Model) this.personagem_entidades.getModel()).getAll());

                this.client.getDBClient().acessarBD(info);
                this.cleanPersonagem();
            } catch (IOException ex) {
                Logger.getLogger(MainFrame.class.getName()).log(Level.SEVERE, null, ex);
            }
        }        
    }//GEN-LAST:event_personagens_adicionarActionPerformed

    private void feature_adicionarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_feature_adicionarActionPerformed
        // TODO add your handling code here:
        Vector<Object> info = new Vector<Object>();
        
        String nome = this.feature_nome.getText();
        String custo = this.feature_custo.getText();
        String descricao = this.feature_descricao.getText();
        
        if(nome.isEmpty() || custo.isEmpty() || descricao.isEmpty())
        {
            JOptionPane.showMessageDialog(this, "É necessário preencher todos os campos para executar esta operação");  
        }
        
        else
        {
            try {
                info.addElement("Insert");
                info.addElement("Features");
                info.addElement(this.feature_nome.getText());
                try
                {
                    info.addElement(new Integer(this.feature_custo.getText()).intValue());                    
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                info.addElement(this.feature_descricao.getText());

                this.client.getDBClient().acessarBD(info);
                this.cleanFeature();
            } catch (IOException ex) {
                Logger.getLogger(MainFrame.class.getName()).log(Level.SEVERE, null, ex);
            }
        }
    }//GEN-LAST:event_feature_adicionarActionPerformed

    private void feature_atualizarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_feature_atualizarActionPerformed
        // TODO add your handling code here:
        Vector<Object> info = new Vector<Object>();
        
        String nome = this.feature_nome.getText();
        String custo = this.feature_custo.getText();
        String descricao = this.feature_descricao.getText();
        
        if(nome.isEmpty() || custo.isEmpty() || descricao.isEmpty())
        {
            JOptionPane.showMessageDialog(this, "É necessário preencher todos os campos para executar esta operação");  
        }
        
        else
        {
            try {
                info.addElement("Update");
                info.addElement("Features");
                info.addElement(this.feature_nome.getText());
                try
                {
                    info.addElement(new Integer(this.feature_custo.getText()).intValue());                    
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                info.addElement(this.feature_descricao.getText());

                this.client.getDBClient().acessarBD(info);
                this.cleanFeature();
            } catch (IOException ex) {
                Logger.getLogger(MainFrame.class.getName()).log(Level.SEVERE, null, ex);
            }
        }
    }//GEN-LAST:event_feature_atualizarActionPerformed

    private void feature_removerActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_feature_removerActionPerformed
        // TODO add your handling code here:
        Vector<Object> info = new Vector<Object>();
        
       
            try {
                info.addElement("Delete");
                info.addElement("Features");
                info.addElement(this.feature_nome.getText());
                try
                {
                    info.addElement(new Integer(this.feature_custo.getText()).intValue());                    
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                info.addElement(this.feature_descricao.getText());

                this.client.getDBClient().acessarBD(info);
                this.cleanFeature();;
            } catch (IOException ex) {
                Logger.getLogger(MainFrame.class.getName()).log(Level.SEVERE, null, ex);
            }
        
    }//GEN-LAST:event_feature_removerActionPerformed

    private void feature_buscarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_feature_buscarActionPerformed
        // TODO add your handling code here:
         // TODO add your handling code here:
        Vector<Object> info = new Vector<Object>();
        
       
            try {
                info.addElement("Search");
                info.addElement("Features");
                info.addElement(this.feature_nome.getText());
                try
                {
                    info.addElement(new Integer(this.feature_custo.getText()).intValue());                    
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                info.addElement(this.feature_descricao.getText());

                this.client.getDBClient().acessarBD(info);
                this.cleanFeature();
            } catch (IOException ex) {
                Logger.getLogger(MainFrame.class.getName()).log(Level.SEVERE, null, ex);
            }
    }//GEN-LAST:event_feature_buscarActionPerformed

    private void personagens_atualizarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_personagens_atualizarActionPerformed
        // TODO add your handling code here:
        Vector<Object> info = new Vector<Object>();
        
        String name = this.personagem_nome.getText();
        String tamanho = this.personagem_tamanho.getSelectedItem().toString();
        String peso = this.personagem_peso.getText();
        String tamanhoSlots = this.personagem_tamanhoSlot.getText();
        String carga = this.personagem_cargaMaxima.getText();
        String preco = this.personagem_preco.getText();
        String sexo = this.personagem_sexo.getSelectedItem().toString();
        String religião = this.personagem_religiao.getText();
        String nacionalidade = this.personagem_nacionalidade.getText();
        
        String forca = this.personagem_forca.getText();
        String habilidade = this.personagem_habilidade.getText();
        String resistencia = this.personagem_resistencia.getText();
        String protecao = this.personagem_protecao.getText();
        String pdf = this.personagem_pdf.getText();
        
        String bonusForca = this.personagem_bonusForca.getText();
        String bonusHabilidade = this.personagem_bonusHabilidade.getText();
        String bonusResistencia = this.personagem_bonusResistecia.getText();
        String bonusProtecao = this.personagem_bonusProtecao.getText();
        String bonusPDF = this.personagem_bonusPDF.getText();
        
        String agua = this.personagem_agua.getText();
        String fogo = this.personagem_fogo.getText();
        String ar = this.personagem_ar.getText();
        String terra = this.personagem_terra.getText();
        String luz = this.personagem_luz.getText();
        String trevas = this.personagem_trevas.getText();
        
        if(name.isEmpty() || tamanho.isEmpty() || peso.isEmpty() || tamanhoSlots.isEmpty() || carga.isEmpty() || preco.isEmpty()
           || sexo.isEmpty() || religião.isEmpty() || nacionalidade.isEmpty() || forca.isEmpty() || habilidade.isEmpty() || resistencia.isEmpty()
           || protecao.isEmpty() || pdf.isEmpty() || bonusForca.isEmpty() || bonusHabilidade.isEmpty() || bonusResistencia.isEmpty() ||
           bonusProtecao.isEmpty() || bonusPDF.isEmpty() || agua.isEmpty() || fogo.isEmpty() || ar.isEmpty() || terra.isEmpty() || luz.isEmpty() || trevas.isEmpty())
        {
           JOptionPane.showMessageDialog(this, "É necessário preencher todos os campos para executar esta operação"); 
        }
        
        else
        {
            try {
                info.addElement("Update");
                info.addElement("Personagens");
                info.addElement(name);
                info.addElement(tamanho);
                try
                {
                    info.addElement(new Integer(peso).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                try
                {
                    info.addElement(new Integer(tamanhoSlots).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                try
                {
                    info.addElement(new Integer(carga).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                try
                {
                    info.addElement(new Integer(preco).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                info.addElement(sexo.charAt(0));
                info.addElement(religião);
                info.addElement(nacionalidade);
                try
                {
                    info.addElement(new Integer(forca).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                try
                {
                    info.addElement(new Integer(habilidade).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                try
                {
                    info.addElement(new Integer(resistencia).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                try
                {
                    info.addElement(new Integer(protecao).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                try
                {
                    info.addElement(new Integer(pdf).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                try
                {
                    info.addElement(new Integer(bonusForca).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                try
                {
                    info.addElement(new Integer(bonusHabilidade).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                try
                {
                    info.addElement(new Integer(bonusResistencia).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                try
                {
                    info.addElement(new Integer(bonusProtecao).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                try
                {
                    info.addElement(new Integer(bonusPDF).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                try
                {
                    info.addElement(new Integer(agua).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }                
                try
                {
                    info.addElement(new Integer(fogo).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                try
                {
                    info.addElement(new Integer(ar).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                try
                {
                    info.addElement(new Integer(terra).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                try
                {
                    info.addElement(new Integer(luz).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                try
                {
                    info.addElement(new Integer(trevas).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }

                info.addElement(((Model) this.jList3.getModel()).getAll());
                info.addElement(((Model) this.personagem_entidades.getModel()).getAll());

                this.client.getDBClient().acessarBD(info);
                this.cleanPersonagem();
            } catch (IOException ex) {
                Logger.getLogger(MainFrame.class.getName()).log(Level.SEVERE, null, ex);
            }
        }
    }//GEN-LAST:event_personagens_atualizarActionPerformed

    private void personagens_removerActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_personagens_removerActionPerformed
        // TODO add your handling code here:
        Vector<Object> info = new Vector<Object>();
        
        String name = this.personagem_nome.getText();
        String tamanho = this.personagem_tamanho.getSelectedItem().toString();
        String peso = this.personagem_peso.getText();
        String tamanhoSlots = this.personagem_tamanhoSlot.getText();
        String carga = this.personagem_cargaMaxima.getText();
        String preco = this.personagem_preco.getText();
        String sexo = this.personagem_sexo.getSelectedItem().toString();
        String religião = this.personagem_religiao.getText();
        String nacionalidade = this.personagem_nacionalidade.getText();
        
        String forca = this.personagem_forca.getText();
        String habilidade = this.personagem_habilidade.getText();
        String resistencia = this.personagem_resistencia.getText();
        String protecao = this.personagem_protecao.getText();
        String pdf = this.personagem_pdf.getText();
        
        String bonusForca = this.personagem_bonusForca.getText();
        String bonusHabilidade = this.personagem_bonusHabilidade.getText();
        String bonusResistencia = this.personagem_bonusResistecia.getText();
        String bonusProtecao = this.personagem_bonusProtecao.getText();
        String bonusPDF = this.personagem_bonusPDF.getText();
        
        String agua = this.personagem_agua.getText();
        String fogo = this.personagem_fogo.getText();
        String ar = this.personagem_ar.getText();
        String terra = this.personagem_terra.getText();
        String luz = this.personagem_luz.getText();
        String trevas = this.personagem_trevas.getText();
        
        
            try {
                info.addElement("Remove");
                info.addElement("Personagens");
                info.addElement(name);
                info.addElement(tamanho);
                try
                {
                    info.addElement(new Integer(peso).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                try
                {
                    info.addElement(new Integer(tamanhoSlots).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                try
                {
                    info.addElement(new Integer(carga).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                try
                {
                    info.addElement(new Integer(preco).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                info.addElement(sexo.charAt(0));
                info.addElement(religião);
                info.addElement(nacionalidade);
                try
                {
                    info.addElement(new Integer(forca).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                try
                {
                    info.addElement(new Integer(habilidade).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                try
                {
                    info.addElement(new Integer(resistencia).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                try
                {
                    info.addElement(new Integer(protecao).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                try
                {
                    info.addElement(new Integer(pdf).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                try
                {
                    info.addElement(new Integer(bonusForca).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                try
                {
                    info.addElement(new Integer(bonusHabilidade).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                try
                {
                    info.addElement(new Integer(bonusResistencia).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                try
                {
                    info.addElement(new Integer(bonusProtecao).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                try
                {
                    info.addElement(new Integer(bonusPDF).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                try
                {
                    info.addElement(new Integer(agua).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }                
                try
                {
                    info.addElement(new Integer(fogo).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                try
                {
                    info.addElement(new Integer(ar).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                try
                {
                    info.addElement(new Integer(terra).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                try
                {
                    info.addElement(new Integer(luz).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                try
                {
                    info.addElement(new Integer(trevas).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }

                info.addElement(((Model) this.jList3.getModel()).getAll());
                info.addElement(((Model) this.personagem_entidades.getModel()).getAll());

                this.client.getDBClient().acessarBD(info);
                this.cleanPersonagem();
            } catch (IOException ex) {
                Logger.getLogger(MainFrame.class.getName()).log(Level.SEVERE, null, ex);
            }
        
    }//GEN-LAST:event_personagens_removerActionPerformed

    private void personagens_buscarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_personagens_buscarActionPerformed
        // TODO add your handling code here:
        Vector<Object> info = new Vector<Object>();
        
        String name = this.personagem_nome.getText();
        String tamanho = this.personagem_tamanho.getSelectedItem().toString();
        String peso = this.personagem_peso.getText();
        String tamanhoSlots = this.personagem_tamanhoSlot.getText();
        String carga = this.personagem_cargaMaxima.getText();
        String preco = this.personagem_preco.getText();
        String sexo = this.personagem_sexo.getSelectedItem().toString();
        String religião = this.personagem_religiao.getText();
        String nacionalidade = this.personagem_nacionalidade.getText();
        
        String forca = this.personagem_forca.getText();
        String habilidade = this.personagem_habilidade.getText();
        String resistencia = this.personagem_resistencia.getText();
        String protecao = this.personagem_protecao.getText();
        String pdf = this.personagem_pdf.getText();
        
        String bonusForca = this.personagem_bonusForca.getText();
        String bonusHabilidade = this.personagem_bonusHabilidade.getText();
        String bonusResistencia = this.personagem_bonusResistecia.getText();
        String bonusProtecao = this.personagem_bonusProtecao.getText();
        String bonusPDF = this.personagem_bonusPDF.getText();
        
        String agua = this.personagem_agua.getText();
        String fogo = this.personagem_fogo.getText();
        String ar = this.personagem_ar.getText();
        String terra = this.personagem_terra.getText();
        String luz = this.personagem_luz.getText();
        String trevas = this.personagem_trevas.getText();
        
        
            try {
                info.addElement("Search");
                info.addElement("Personagens");
                info.addElement(name);
                info.addElement(tamanho);
                try
                {
                    info.addElement(new Integer(peso).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                try
                {
                    info.addElement(new Integer(tamanhoSlots).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                try
                {
                    info.addElement(new Integer(carga).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                try
                {
                    info.addElement(new Integer(preco).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                info.addElement(sexo.charAt(0));
                info.addElement(religião);
                info.addElement(nacionalidade);
                try
                {
                    info.addElement(new Integer(forca).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                try
                {
                    info.addElement(new Integer(habilidade).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                try
                {
                    info.addElement(new Integer(resistencia).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                try
                {
                    info.addElement(new Integer(protecao).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                try
                {
                    info.addElement(new Integer(pdf).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                try
                {
                    info.addElement(new Integer(bonusForca).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                try
                {
                    info.addElement(new Integer(bonusHabilidade).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                try
                {
                    info.addElement(new Integer(bonusResistencia).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                try
                {
                    info.addElement(new Integer(bonusProtecao).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                try
                {
                    info.addElement(new Integer(bonusPDF).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                try
                {
                    info.addElement(new Integer(agua).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }                
                try
                {
                    info.addElement(new Integer(fogo).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                try
                {
                    info.addElement(new Integer(ar).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                try
                {
                    info.addElement(new Integer(terra).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                try
                {
                    info.addElement(new Integer(luz).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                try
                {
                    info.addElement(new Integer(trevas).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }

                info.addElement(((Model) this.jList3.getModel()).getAll());
                info.addElement(((Model) this.personagem_entidades.getModel()).getAll());

                this.client.getDBClient().acessarBD(info);
                this.cleanPersonagem();
            } catch (IOException ex) {
                Logger.getLogger(MainFrame.class.getName()).log(Level.SEVERE, null, ex);
            }
    }//GEN-LAST:event_personagens_buscarActionPerformed

    private void jButton22ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton22ActionPerformed
        // TODO add your handling code here:
        Vector<Object> info = new Vector<Object>();
        
        String nome = this.equipamento_nome.getText();
        String tamanho = this.jComboBox3.getSelectedItem().toString();
        String peso = this.equipamentos_peso1.getText();
        String tamanhoSlots = this.equipamentos_tamanhoSlot.getText();
        String cargaMax = this.equipamento_cargaMaxima.getText();
        String preco = this.equipamento_preco.getText();
        String qualidade = this.jComboBox4.getSelectedItem().toString();
        String classificacao = this.jComboBox2.getSelectedItem().toString();
        String vestivel = this.jComboBox1.getSelectedItem().toString();
        String velocidadeMax = this.equipamento_velocidadeMax.getText();
        String numeroDeEntidades = this.equipamento_nbEntidades.getText();
        String resistencia = this.equipamento_resistencia.getText();
        String protecao = this.equipamento_protecao.getName();
        String bonusResistencia = this.equipamento_bonusResistecia.getText();
        String bonusProtecao = this.equipamento_bonusProtecao.getText();
        String tipo1 = this.equipamento_tipo1.getText();
        String tipo2 = this.equipamento_tipo2.getText();
        
        if(nome.isEmpty() || tamanho.isEmpty() || peso.isEmpty() || tamanhoSlots.isEmpty() || cargaMax.isEmpty() || preco.isEmpty() || 
           qualidade.isEmpty() || classificacao.isEmpty() || vestivel.isEmpty() || velocidadeMax.isEmpty() || numeroDeEntidades.isEmpty() || 
           resistencia.isEmpty() || protecao.isEmpty() || bonusResistencia.isEmpty() || bonusProtecao.isEmpty() || tipo1.isEmpty() || tipo2.isEmpty())
        {
            JOptionPane.showMessageDialog(this, "É necessário preencher todos os campos para executar esta operação");
        }
        
        else
        {
            try {
                info.addElement("Insert");
                info.addElement("Equipamentos");
                info.addElement(nome);
                info.addElement(tamanho);
                try
                {
                    info.addElement(new Integer(peso).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                try
                {
                    info.addElement(new Integer(tamanhoSlots).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                try
                {
                    info.addElement(new Integer(cargaMax).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                try
                {
                    info.addElement(new Integer(preco).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                info.addElement(qualidade);
                info.addElement(classificacao);
                info.addElement(new Boolean(vestivel).booleanValue());
                try
                {
                    info.addElement(new Integer(velocidadeMax).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                try
                {
                    info.addElement(new Integer(numeroDeEntidades).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                try
                {
                    info.addElement(new Integer(resistencia).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                try
                {
                    info.addElement(new Integer(protecao).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                try
                {
                    info.addElement(new Integer(bonusResistencia).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                try
                {
                    info.addElement(new Integer(bonusProtecao).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                info.addElement(tipo1);
                info.addElement(tipo2);

                this.client.getDBClient().acessarBD(info);
                this.cleanEquipamento();
            } catch (IOException ex) {
                Logger.getLogger(MainFrame.class.getName()).log(Level.SEVERE, null, ex);
            }
        }
    }//GEN-LAST:event_jButton22ActionPerformed

    private void jButton21ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton21ActionPerformed
        // TODO add your handling code here:
        Vector<Object> info = new Vector<Object>();
        
        String nome = this.equipamento_nome.getText();
        String tamanho = this.jComboBox3.getSelectedItem().toString();
        String peso = this.equipamentos_peso1.getText();
        String tamanhoSlots = this.equipamentos_tamanhoSlot.getText();
        String cargaMax = this.equipamento_cargaMaxima.getText();
        String preco = this.equipamento_preco.getText();
        String qualidade = this.jComboBox4.getSelectedItem().toString();
        String classificacao = this.jComboBox2.getSelectedItem().toString();
        String vestivel = this.jComboBox1.getSelectedItem().toString();
        String velocidadeMax = this.equipamento_velocidadeMax.getText();
        String numeroDeEntidades = this.equipamento_nbEntidades.getText();
        String resistencia = this.equipamento_resistencia.getText();
        String protecao = this.equipamento_protecao.getName();
        String bonusResistencia = this.equipamento_bonusResistecia.getText();
        String bonusProtecao = this.equipamento_bonusProtecao.getText();
        String tipo1 = this.equipamento_tipo1.getText();
        String tipo2 = this.equipamento_tipo2.getText();
        
        if(nome.isEmpty() || tamanho.isEmpty() || peso.isEmpty() || tamanhoSlots.isEmpty() || cargaMax.isEmpty() || preco.isEmpty() || 
           qualidade.isEmpty() || classificacao.isEmpty() || vestivel.isEmpty() || velocidadeMax.isEmpty() || numeroDeEntidades.isEmpty() || 
           resistencia.isEmpty() || protecao.isEmpty() || bonusResistencia.isEmpty() || bonusProtecao.isEmpty() || tipo1.isEmpty() || tipo2.isEmpty())
        {
            JOptionPane.showMessageDialog(this, "É necessário preencher todos os campos para executar esta operação");
        }
        
        else
        {
            try {
                info.addElement("Update");
                info.addElement("Equipamentos");
                info.addElement(nome);
                info.addElement(tamanho);
                try
                {
                    info.addElement(new Integer(peso).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                try
                {
                    info.addElement(new Integer(tamanhoSlots).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                try
                {
                    info.addElement(new Integer(cargaMax).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                try
                {
                    info.addElement(new Integer(preco).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                info.addElement(qualidade);
                info.addElement(classificacao);
                info.addElement(new Boolean(vestivel).booleanValue());
                try
                {
                    info.addElement(new Integer(velocidadeMax).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                try
                {
                    info.addElement(new Integer(numeroDeEntidades).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                try
                {
                    info.addElement(new Integer(resistencia).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                try
                {
                    info.addElement(new Integer(protecao).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                try
                {
                    info.addElement(new Integer(bonusResistencia).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                try
                {
                    info.addElement(new Integer(bonusProtecao).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                info.addElement(tipo1);
                info.addElement(tipo2);

                this.client.getDBClient().acessarBD(info);
                this.cleanEquipamento();
            } catch (IOException ex) {
                Logger.getLogger(MainFrame.class.getName()).log(Level.SEVERE, null, ex);
            }
        }
    }//GEN-LAST:event_jButton21ActionPerformed

    private void jButton23ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton23ActionPerformed
        // TODO add your handling code here:
        Vector<Object> info = new Vector<Object>();
        
        String nome = this.equipamento_nome.getText();
        String tamanho = this.jComboBox3.getSelectedItem().toString();
        String peso = this.equipamentos_peso1.getText();
        String tamanhoSlots = this.equipamentos_tamanhoSlot.getText();
        String cargaMax = this.equipamento_cargaMaxima.getText();
        String preco = this.equipamento_preco.getText();
        String qualidade = this.jComboBox4.getSelectedItem().toString();
        String classificacao = this.jComboBox2.getSelectedItem().toString();
        String vestivel = this.jComboBox1.getSelectedItem().toString();
        String velocidadeMax = this.equipamento_velocidadeMax.getText();
        String numeroDeEntidades = this.equipamento_nbEntidades.getText();
        String resistencia = this.equipamento_resistencia.getText();
        String protecao = this.equipamento_protecao.getName();
        String bonusResistencia = this.equipamento_bonusResistecia.getText();
        String bonusProtecao = this.equipamento_bonusProtecao.getText();
        String tipo1 = this.equipamento_tipo1.getText();
        String tipo2 = this.equipamento_tipo2.getText();
        
        
            try {
                info.addElement("Delete");
                info.addElement("Equipamentos");
                info.addElement(nome);
                info.addElement(tamanho);
                try
                {
                    info.addElement(new Integer(peso).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                try
                {
                    info.addElement(new Integer(tamanhoSlots).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                try
                {
                    info.addElement(new Integer(cargaMax).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                try
                {
                    info.addElement(new Integer(preco).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                info.addElement(qualidade);
                info.addElement(classificacao);
                info.addElement(new Boolean(vestivel).booleanValue());
                try
                {
                    info.addElement(new Integer(velocidadeMax).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                try
                {
                    info.addElement(new Integer(numeroDeEntidades).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                try
                {
                    info.addElement(new Integer(resistencia).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                try
                {
                    info.addElement(new Integer(protecao).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                try
                {
                    info.addElement(new Integer(bonusResistencia).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                try
                {
                    info.addElement(new Integer(bonusProtecao).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                info.addElement(tipo1);
                info.addElement(tipo2);

                this.client.getDBClient().acessarBD(info);
                this.cleanEquipamento();
            } catch (IOException ex) {
                Logger.getLogger(MainFrame.class.getName()).log(Level.SEVERE, null, ex);
            }
        
    }//GEN-LAST:event_jButton23ActionPerformed

    private void jButton24ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton24ActionPerformed
        // TODO add your handling code here:
        Vector<Object> info = new Vector<Object>();
        
        String nome = this.equipamento_nome.getText();
        String tamanho = this.jComboBox3.getSelectedItem().toString();
        String peso = this.equipamentos_peso1.getText();
        String tamanhoSlots = this.equipamentos_tamanhoSlot.getText();
        String cargaMax = this.equipamento_cargaMaxima.getText();
        String preco = this.equipamento_preco.getText();
        String qualidade = this.jComboBox4.getSelectedItem().toString();
        String classificacao = this.jComboBox2.getSelectedItem().toString();
        String vestivel = this.jComboBox1.getSelectedItem().toString();
        String velocidadeMax = this.equipamento_velocidadeMax.getText();
        String numeroDeEntidades = this.equipamento_nbEntidades.getText();
        String resistencia = this.equipamento_resistencia.getText();
        String protecao = this.equipamento_protecao.getText();
        String bonusResistencia = this.equipamento_bonusResistecia.getText();
        String bonusProtecao = this.equipamento_bonusProtecao.getText();
        String tipo1 = this.equipamento_tipo1.getText();
        String tipo2 = this.equipamento_tipo2.getText();
        
        
            try {
                info.addElement("Search");
                info.addElement("Equipamentos");
                info.addElement(nome);
                info.addElement(tamanho);
                try
                {
                    info.addElement(new Integer(peso).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                try
                {
                    info.addElement(new Integer(tamanhoSlots).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                try
                {
                    info.addElement(new Integer(cargaMax).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                try
                {
                    info.addElement(new Integer(preco).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                info.addElement(qualidade);
                info.addElement(classificacao);
                info.addElement(new Boolean(vestivel).booleanValue());
                try
                {
                    info.addElement(new Integer(velocidadeMax).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                try
                {
                    info.addElement(new Integer(numeroDeEntidades).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                try
                {
                    info.addElement(new Integer(resistencia).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                try
                {
                    info.addElement(new Integer(protecao).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                try
                {
                    info.addElement(new Integer(bonusResistencia).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                try
                {
                    info.addElement(new Integer(bonusProtecao).intValue());
                }
                catch (NumberFormatException e)                
                {
                    info.addElement(new String());
                }
                info.addElement(tipo1);
                info.addElement(tipo2);

                this.client.getDBClient().acessarBD(info);
                this.cleanEquipamento();
            } catch (IOException ex) {
                Logger.getLogger(MainFrame.class.getName()).log(Level.SEVERE, null, ex);
            }
        
    }//GEN-LAST:event_jButton24ActionPerformed

    private void listValueChanged(javax.swing.event.ListSelectionEvent evt) {//GEN-FIRST:event_listValueChanged
        // TODO add your handling code here:
        if(this.jogadores_list.getSelectedIndex() >= 0){
            Vector<Object> fields = (Vector<Object>) ((Model)this.jogadores_list.getModel()).getAll().elementAt(this.jogadores_list.getSelectedIndex());
            this.jogador_nome.setText(fields.elementAt(0).toString());
            this.jogador_email.setText(fields.elementAt(1).toString());
            this.jogador_nomeUsuario.setText(fields.elementAt(2).toString());        
        }
        
}//GEN-LAST:event_listValueChanged

    private void personagens_listValueChanged(javax.swing.event.ListSelectionEvent evt) {//GEN-FIRST:event_personagens_listValueChanged
        // TODO add your handling code here:
        Vector<Object> fields = (Vector<Object>) ((Model)this.personagens_list.getModel()).getAll().elementAt(this.personagens_list.getSelectedIndex());
        this.personagem_nome.setText(fields.elementAt(0).toString());
        this.personagem_tamanho.setSelectedItem(fields.elementAt(1).toString());
        this.personagem_peso.setText(fields.elementAt(2).toString());
        this.personagem_tamanhoSlot.setText(fields.elementAt(3).toString());
        this.personagem_cargaMaxima.setText(fields.elementAt(4).toString());
        this.personagem_preco.setText(fields.elementAt(5).toString());
        this.personagem_sexo.setSelectedItem(fields.elementAt(6).toString());
        this.personagem_religiao.setText(fields.elementAt(7).toString());
        this.personagem_nacionalidade.setText(fields.elementAt(8).toString());
        this.personagem_forca.setText(fields.elementAt(9).toString());
        this.personagem_habilidade.setText(fields.elementAt(10).toString());
        this.personagem_resistencia.setText(fields.elementAt(11).toString());
        this.personagem_protecao.setText(fields.elementAt(12).toString());
        this.personagem_pdf.setText(fields.elementAt(13).toString());
        this.personagem_bonusForca.setText(fields.elementAt(14).toString());
        this.personagem_bonusHabilidade.setText(fields.elementAt(15).toString());
        this.personagem_bonusResistecia.setText(fields.elementAt(16).toString());
        this.personagem_bonusProtecao.setText(fields.elementAt(17).toString());
        this.personagem_bonusPDF.setText(fields.elementAt(18).toString());
        this.personagem_agua.setText(fields.elementAt(19).toString());
        this.personagem_fogo.setText(fields.elementAt(20).toString());
        this.personagem_ar.setText(fields.elementAt(21).toString());
        this.personagem_terra.setText(fields.elementAt(22).toString());
        this.personagem_luz.setText(fields.elementAt(23).toString());
        this.personagem_trevas.setText(fields.elementAt(24).toString());
        
        Vector<Object> temp1 = (Vector<Object>)fields.elementAt(25);
        Vector<Object> temp2 = (Vector<Object>)fields.elementAt(26);
        
        this.jList3.setModel(new Model(temp1));
        this.personagem_entidades.setModel(new Model(temp2));
        
    }//GEN-LAST:event_personagens_listValueChanged

    private void feature_listValueChanged(javax.swing.event.ListSelectionEvent evt) {//GEN-FIRST:event_feature_listValueChanged
        // TODO add your handling code here:
        int index =  this.feature_list.getSelectedIndex();
        if(index >= 0){
            Vector<Object> fields = (Vector<Object>) ((Model)this.feature_list.getModel()).getAll().elementAt(index);
            this.feature_nome.setText(fields.elementAt(0).toString());
            this.feature_custo.setText(fields.elementAt(1).toString());
            this.feature_descricao.setText(fields.elementAt(2).toString()); 
        }
    }//GEN-LAST:event_feature_listValueChanged

    private void jList2ValueChanged(javax.swing.event.ListSelectionEvent evt) {//GEN-FIRST:event_jList2ValueChanged
        // TODO add your handling code here:
        Vector<Object> fields = (Vector<Object>) ((Model)this.jList2.getModel()).getAll().elementAt(this.jList2.getSelectedIndex());
        
        this.equipamento_nome.setText(fields.elementAt(0).toString());
        this.jComboBox3.setSelectedItem(fields.elementAt(1).toString());
        this.equipamentos_peso1.setText(fields.elementAt(2).toString());
        this.equipamentos_tamanhoSlot.setText(fields.elementAt(3).toString());
        this.equipamento_cargaMaxima.setText(fields.elementAt(4).toString());
        this.equipamento_preco.setText(fields.elementAt(5).toString());
        this.jComboBox4.setSelectedItem(fields.elementAt(6).toString());
        this.jComboBox2.setSelectedItem(fields.elementAt(7).toString());
        this.jComboBox1.setSelectedItem(fields.elementAt(8).toString());
        this.equipamento_velocidadeMax.setText(fields.elementAt(9).toString());
        this.equipamento_nbEntidades.setText(fields.elementAt(10).toString());
        this.equipamento_resistencia.setText(fields.elementAt(11).toString());
        this.equipamento_protecao.setText(fields.elementAt(12).toString());
        this.equipamento_bonusProtecao.setText(fields.elementAt(13).toString());
        this.equipamento_bonusResistecia.setText(fields.elementAt(14).toString());
        this.equipamento_tipo1.setText(fields.elementAt(15).toString());
        this.equipamento_tipo2.setText(fields.elementAt(16).toString());
        
    }//GEN-LAST:event_jList2ValueChanged

    private void terrenosValueChanged(javax.swing.event.ListSelectionEvent evt) {//GEN-FIRST:event_terrenosValueChanged
        // TODO add your handling code here:
        if(this.terrenos.getSelectedIndex() >= 0){
            Vector<Object> fields = (Vector<Object>) ((Model)this.terrenos.getModel()).getAll().elementAt(this.terrenos.getSelectedIndex());
            this.terreno_nome.setText(fields.elementAt(0).toString());
            this.terreno_descricao.setText(fields.elementAt(1).toString());
        }        
    }//GEN-LAST:event_terrenosValueChanged
    
    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new MainFrame().setVisible(true);
            }
        });
    }
    
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JTextField equipamento_bonusProtecao;
    private javax.swing.JTextField equipamento_bonusResistecia;
    private javax.swing.JTextField equipamento_cargaMaxima;
    private javax.swing.JTextField equipamento_nbEntidades;
    private javax.swing.JTextField equipamento_nome;
    private javax.swing.JTextField equipamento_preco;
    private javax.swing.JTextField equipamento_protecao;
    private javax.swing.JTextField equipamento_resistencia;
    private javax.swing.JTextField equipamento_tipo1;
    private javax.swing.JTextField equipamento_tipo2;
    private javax.swing.JTextField equipamento_velocidadeMax;
    private javax.swing.JTextField equipamentos_peso1;
    private javax.swing.JTextField equipamentos_tamanhoSlot;
    private javax.swing.JButton feature_adicionar;
    private javax.swing.JButton feature_atualizar;
    private javax.swing.JButton feature_buscar;
    private javax.swing.JTextField feature_custo;
    private javax.swing.JTextArea feature_descricao;
    private javax.swing.JList feature_list;
    private javax.swing.JTextField feature_nome;
    private javax.swing.JButton feature_remover;
    private javax.swing.JButton jButton13;
    private javax.swing.JButton jButton14;
    private javax.swing.JButton jButton15;
    private javax.swing.JButton jButton16;
    private javax.swing.JButton jButton21;
    private javax.swing.JButton jButton22;
    private javax.swing.JButton jButton23;
    private javax.swing.JButton jButton24;
    private javax.swing.JComboBox jComboBox1;
    private javax.swing.JComboBox jComboBox2;
    private javax.swing.JComboBox jComboBox3;
    private javax.swing.JComboBox jComboBox4;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel12;
    private javax.swing.JLabel jLabel13;
    private javax.swing.JLabel jLabel14;
    private javax.swing.JLabel jLabel15;
    private javax.swing.JLabel jLabel16;
    private javax.swing.JLabel jLabel17;
    private javax.swing.JLabel jLabel18;
    private javax.swing.JLabel jLabel19;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel20;
    private javax.swing.JLabel jLabel21;
    private javax.swing.JLabel jLabel22;
    private javax.swing.JLabel jLabel23;
    private javax.swing.JLabel jLabel24;
    private javax.swing.JLabel jLabel25;
    private javax.swing.JLabel jLabel26;
    private javax.swing.JLabel jLabel27;
    private javax.swing.JLabel jLabel28;
    private javax.swing.JLabel jLabel29;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel30;
    private javax.swing.JLabel jLabel31;
    private javax.swing.JLabel jLabel32;
    private javax.swing.JLabel jLabel33;
    private javax.swing.JLabel jLabel34;
    private javax.swing.JLabel jLabel35;
    private javax.swing.JLabel jLabel36;
    private javax.swing.JLabel jLabel37;
    private javax.swing.JLabel jLabel38;
    private javax.swing.JLabel jLabel39;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel40;
    private javax.swing.JLabel jLabel41;
    private javax.swing.JLabel jLabel42;
    private javax.swing.JLabel jLabel43;
    private javax.swing.JLabel jLabel44;
    private javax.swing.JLabel jLabel45;
    private javax.swing.JLabel jLabel46;
    private javax.swing.JLabel jLabel47;
    private javax.swing.JLabel jLabel48;
    private javax.swing.JLabel jLabel49;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel50;
    private javax.swing.JLabel jLabel51;
    private javax.swing.JLabel jLabel52;
    private javax.swing.JLabel jLabel53;
    private javax.swing.JLabel jLabel54;
    private javax.swing.JLabel jLabel55;
    private javax.swing.JLabel jLabel58;
    private javax.swing.JLabel jLabel59;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel60;
    private javax.swing.JLabel jLabel61;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JList jList2;
    private javax.swing.JList jList3;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JPanel jPanel4;
    private javax.swing.JPanel jPanel5;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JScrollPane jScrollPane3;
    private javax.swing.JScrollPane jScrollPane4;
    private javax.swing.JScrollPane jScrollPane5;
    private javax.swing.JScrollPane jScrollPane6;
    private javax.swing.JScrollPane jScrollPane7;
    private javax.swing.JScrollPane jScrollPane8;
    private javax.swing.JScrollPane jScrollPane9;
    private javax.swing.JTabbedPane jTabbedPane1;
    private javax.swing.JTextField jogador_email;
    private javax.swing.JTextField jogador_nome;
    private javax.swing.JTextField jogador_nomeUsuario;
    private javax.swing.JButton jogadores_adicionar;
    private javax.swing.JButton jogadores_atualizar;
    private javax.swing.JButton jogadores_buscar;
    private javax.swing.JList jogadores_list;
    private javax.swing.JButton jogadores_remover;
    private javax.swing.JTextField personage_addFeature;
    private javax.swing.JTextField personagem_addEntidade;
    private javax.swing.JTextField personagem_agua;
    private javax.swing.JTextField personagem_ar;
    private javax.swing.JTextField personagem_bonusForca;
    private javax.swing.JTextField personagem_bonusHabilidade;
    private javax.swing.JTextField personagem_bonusPDF;
    private javax.swing.JTextField personagem_bonusProtecao;
    private javax.swing.JTextField personagem_bonusResistecia;
    private javax.swing.JTextField personagem_cargaMaxima;
    private javax.swing.JList personagem_entidades;
    private javax.swing.JTextField personagem_fogo;
    private javax.swing.JTextField personagem_forca;
    private javax.swing.JTextField personagem_habilidade;
    private javax.swing.JTextField personagem_luz;
    private javax.swing.JTextField personagem_nacionalidade;
    private javax.swing.JTextField personagem_nome;
    private javax.swing.JTextField personagem_pdf;
    private javax.swing.JTextField personagem_peso;
    private javax.swing.JTextField personagem_preco;
    private javax.swing.JTextField personagem_protecao;
    private javax.swing.JTextField personagem_religiao;
    private javax.swing.JTextField personagem_resistencia;
    private javax.swing.JComboBox personagem_sexo;
    private javax.swing.JComboBox personagem_tamanho;
    private javax.swing.JTextField personagem_tamanhoSlot;
    private javax.swing.JTextField personagem_terra;
    private javax.swing.JTextField personagem_trevas;
    private javax.swing.JButton personagens_adicionar;
    private javax.swing.JButton personagens_atualizar;
    private javax.swing.JButton personagens_buscar;
    private javax.swing.JList personagens_list;
    private javax.swing.JButton personagens_remover;
    private javax.swing.JTextArea terreno_descricao;
    private javax.swing.JTextField terreno_nome;
    private javax.swing.JList terrenos;
    // End of variables declaration//GEN-END:variables

    public void observe(Vector<Object> string) {
        if(string.elementAt(0).toString().equals("Invalid Login"))
        {
            this.setVisible(false);
            javax.swing.JOptionPane.showMessageDialog(this, "Usuário inexistente ou senha inválida");
            new LoginDialog(this, true, this.client).setVisible(true);
        }
        
        else if(string.elementAt(0).toString().equals("Fail") || string.elementAt(0).toString().equals("Alright"))
        {
            javax.swing.JOptionPane.showMessageDialog(this, string.elementAt(1));
        }
        
        else if(string.elementAt(0).toString().equals("Answer"))
        {
            if(string.elementAt(1).toString().equals("Jogadores"))
            {
                string.removeElementAt(0);
                string.removeElementAt(0);
                
                this.jogadores_list.setModel(new Model(string));
                this.jogadores_list.setSelectedIndex(0);
            }
            
            else if(string.elementAt(1).toString().equals("Personagens"))                
            {
                string.removeElementAt(0);
                string.removeElementAt(0);
                
                this.personagens_list.setModel(new Model(string));
                this.personagens_list.setSelectedIndex(0);
            }
            
            else if(string.elementAt(1).toString().equals("Equipamentos"))
            {
                string.removeElementAt(0);
                string.removeElementAt(0);
                
                this.jList2.setModel(new Model(string));
                this.jList2.setSelectedIndex(0);
            }
            
            else if(string.elementAt(1).toString().equals("Features"))
            {
                string.removeElementAt(0);
                string.removeElementAt(0);
                
                this.feature_list.setModel(new Model(string));
                this.feature_list.setSelectedIndex(0);
            }
            
            else if(string.elementAt(1).toString().equals("Terrenos"))
            {
                string.removeElementAt(0);
                string.removeElementAt(0);
                
                this.terrenos.setModel(new Model(string));
                this.terrenos.setSelectedIndex(0);
            }
        }
    }
    
    private void cleanJogador()
    {
        this.jogador_email.setText(new String());
        this.jogador_nome.setText(new String());
        this.jogador_nomeUsuario.setText(new String());
        
        this.jogadores_list.setModel(new Model(new Vector<Object>()));
    }
    
    private void cleanTerreno() {
        this.terreno_nome.setText(new String());
        this.terreno_descricao.setText(new String());
        this.terrenos.setModel(new Model(new Vector<Object>()));
    }
    
    private void cleanFeature() {
        this.feature_nome.setText(new String());
        this.feature_custo.setText(new String());
        this.feature_descricao.setText(new String());
        this.feature_list.setModel(new Model(new Vector<Object>()));
    }
    
    private void cleanEquipamento() {
        
        this.equipamento_bonusProtecao.setText(new String());
        this.equipamento_bonusResistecia.setText(new String());
        this.equipamento_cargaMaxima.setText(new String());
        this.equipamento_nbEntidades.setText(new String());
        this.equipamento_nome.setText(new String());
        this.equipamento_preco.setText(new String());
        this.equipamento_protecao.setText(new String());
        this.equipamento_resistencia.setText(new String());
        this.equipamento_tipo1.setText(new String());
        this.equipamento_tipo2.setText(new String());
        this.equipamento_velocidadeMax.setText(new String());
        this.equipamentos_peso1.setText(new String());
        this.equipamentos_tamanhoSlot.setText(new String());
        this.jList2.setModel(new Model(new Vector<Object>()));
        
    }

    private void cleanPersonagem() {
        
        this.personagem_nome.setText(new String());
        this.personagem_peso.setText(new String());
        this.personagem_tamanhoSlot.setText(new String());
        this.personagem_cargaMaxima.setText(new String());
        this.personagem_preco.setText(new String());
        this.personagem_religiao.setText(new String());
        this.personagem_nacionalidade.setText(new String());
        this.personagem_forca.setText(new String());
        this.personagem_habilidade.setText(new String());
        this.personagem_resistencia.setText(new String());
        this.personagem_protecao.setText(new String());
        this.personagem_pdf.setText(new String());
        this.personagem_bonusForca.setText(new String());
        this.personagem_bonusHabilidade.setText(new String());
        this.personagem_bonusResistecia.setText(new String());
        this.personagem_bonusProtecao.setText(new String());
        this.personagem_bonusPDF.setText(new String());
        this.personagem_agua.setText(new String());
        this.personagem_fogo.setText(new String());
        this.personagem_ar.setText(new String());
        this.personagem_terra.setText(new String());
        this.personagem_luz.setText(new String());
        this.personagem_trevas.setText(new String());
        
        this.personagem_entidades.setModel(new Model(new Vector<Object>()));
        this.jList3.setModel(new Model(new Vector<Object>()));
    }
}
